import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/home'
import User from '../views/user'
import MyOrder from '../views/my-order'
import OrderDetail from '../views/order-detail'
import Login from '../views/login'
import Register from '../views/register'
import TypeList from '../views/type-list'
import Detail from '../views/detail'
import Confirm from '../views/confirm-order'
import AddressList from '../views/address-list'
import AddressDetail from '../views/address-detail'
import AccountDetail from '../views/account-detail'
import Team from '../views/team'
import TeamDetail from '../views/team-detail'
import CashInfoList from '../views/cashinfo-list'
import CashInfoAdd from '../views/cashinfo-add'
import CashConfigList from '../views/cashconfig-list'
import CashConfigDetail from '../views/cashconfig-detail'
import Charge from '../views/charge'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/my-order',
      name: 'MyOrder',
      component: MyOrder
    },
    {
      path: '/order-detail',
      name: 'OrderDetail',
      component: OrderDetail
    },
    {
      path: '/type-list',
      name: 'TypeList',
      component: TypeList
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/confirm',
      name: 'Confirm',
      component: Confirm
    },
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/address-list',
      name: 'AddressList',
      component: AddressList
    },
    {
      path: '/address-detail',
      name: 'AddressDetail',
      component: AddressDetail
    },
    {
      path: '/account-detail',
      name: 'AccountDetail',
      component: AccountDetail
    },
    {
      path: '/team',
      name: 'Team',
      component: Team
    },
    {
      path: '/team-detail',
      name: 'TeamDetail',
      component: TeamDetail
    },
    {
      path: '/cashinfo-list',
      name: 'CashInfoList',
      component: CashInfoList
    },
    {
      path: '/cashinfo-add',
      name: 'CashInfoAdd',
      component: CashInfoAdd
    },
    {
      path: '/cashconfig-list',
      name: 'CashConfigList',
      component: CashConfigList
    },
    {
      path: '/cashconfig-detail',
      name: 'CashConfigDetail',
      component: CashConfigDetail
    },
    {
      path: '/charge',
      name: 'Charge',
      component: Charge
    },
  ]
})
